package ai.turbochain.ipex;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration;
import org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.scheduling.annotation.EnableScheduling;

import ai.turbochain.ipex.filter.LogFilter;


/**
 * @author jack
 * @date 2018年02月06日
 *
 *exclude = {MongoAutoConfiguration.class,MongoDataAutoConfiguration.class}
 * 禁用springboot自带的mongodb配置（localhost），不禁用虽然也可以，但每次启动都会出现报错信息
 */

@SpringBootApplication
@EnableScheduling
@EnableDiscoveryClient
public class UcenterApplication {
	
    public static void main(String[] args) {
        SpringApplication.run(UcenterApplication.class, args);
    }
    
	@Bean(name = "LogFilter")
	public LogFilter getLogFilter(){
		return new LogFilter();
	}
	
}
